﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="add.aspx.cs" Inherits="License_add" StyleSheetTheme="Theme1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Add License</title>
    <link href="../Style/jquery.ui.datepicker.css" rel="stylesheet" type="text/css" />
    <link href="../Style/style.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.8.2.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="../Scripts/popup.js" type="text/javascript"></script>
    <style type="text/css">
        .style1
        {
            width: 226px;
        }
        .style2
        {
            width: 239px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:Label ID="Label1" runat="server" Text="Adding a new license" 
            Font-Size="X-Large"></asp:Label>
        <br />
        <br />
        <br />
        <table style="width:100%;">
            <tr>
                <td class="style1">
        <asp:Label ID="Label7" runat="server" Text="Company Name"></asp:Label>
                </td>
                <td class="style2">
        <asp:TextBox ID="companyNameBox" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="companyNameBox" ErrorMessage="Please Enter a Company Name"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
        <asp:Label ID="Label8" runat="server" Text="Contact Name"></asp:Label>
                </td>
                <td class="style2">
        <asp:TextBox ID="ContactNameBox" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="ContactNameBox" ErrorMessage="Please enter a contact name"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
        <asp:Label ID="Label9" runat="server" Text="Email Address"></asp:Label>
                </td>
                <td class="style2">
        <asp:TextBox ID="EmailAddressBox" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
            ControlToValidate="EmailAddressBox" 
            ErrorMessage="Please Enter an Email Address" 
            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
        <asp:Label ID="Label10" runat="server" Text="Cellphone Number"></asp:Label>
                </td>
                <td class="style2">
        <asp:TextBox ID="CellphoneNumberBox" runat="server" Width="200px">+27</asp:TextBox>
                </td>
                <td>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
            ControlToValidate="CellphoneNumberBox" 
            ErrorMessage="Please Enter a Cellphone Number"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
        <asp:Label ID="Label11" runat="server" Text="Contract Period(Months)"></asp:Label>
                </td>
                <td class="style2">
        <asp:DropDownList ID="MonthSelectionDrop" runat="server">
            <asp:ListItem>1</asp:ListItem>
            <asp:ListItem>3</asp:ListItem>
            <asp:ListItem>6</asp:ListItem>
            <asp:ListItem>12</asp:ListItem>
            <asp:ListItem>18</asp:ListItem>
            <asp:ListItem>24</asp:ListItem>
        </asp:DropDownList>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp;</td>
                <td class="style2">
                    <br />
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
            Text="Add License" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
